package com.ruoyi.system.domain.stores;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author GE-LV5
 * @create 2023/2/17 13:55
 * 设备台账
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@Accessors(chain = true)
@TableName("equipment_ledger")
public class EquipmentLedger implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id")
    @Excel(name = "序号")
    private Long id;

    @ApiModelProperty(value = "设备编码")
    @Excel(name = "设备编码")
    private String equipmentCode;

    @ApiModelProperty(value = "设备名称")
    @Excel(name = "设备名称")
    private String equipmentName;

    @ApiModelProperty(value = "设备类型")
    @Excel(name = "设备类型")
    private String equipmentType;

    @ApiModelProperty(value = "ip地址")
    @Excel(name = "ip地址")
    private String ipAddress;

    @ApiModelProperty(value = "端口")
    @Excel(name = "端口")
    private Integer port;

    @ApiModelProperty(value = "上级设备")
    @Excel(name = "上级设备")
    private String superiorEquipment;

    @ApiModelProperty(value = "设备所在地")
    @Excel(name = "设备所在地")
    private String equipmentLocation;

    @ApiModelProperty(value = " 采购价格 ")
    @Excel(name = " 采购价格")
    private String procurementPrice;

    @ApiModelProperty(value = "  责任人")
    @Excel(name = "责任人")
    private String responsible;

    @ApiModelProperty(value = "责任部门")
    @Excel(name = "责任部门")
    private String department;

    @ApiModelProperty(value = "型号/规格")
    @Excel(name = "型号/规格")
    private String specification;

    @ApiModelProperty(value = "出厂编码/序列")
    @Excel(name = "出厂编码/序列")
    private String factoryCode;

    @ApiModelProperty(value = "启用时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "启用时间",dateFormat = "yyyy-MM-dd")
    private Date activeTime;

    @ApiModelProperty(value = "入场时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "入场时间",dateFormat = "yyyy-MM-dd")
    private Date approachTime;
    /**
     * 创建者
     */
    @ApiModelProperty(value = "创建者")
    private String createBy;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    @ApiModelProperty(value = "更新者")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 状态（0正常 1关闭）
     */
    @Excel(name = "状态",dictType = "equipment_ledger")
    @ApiModelProperty(value = "状态")
    private String status;


    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Excel(name = "备注")
    private String remark;



}
